using System;

namespace KodeIT.Web
{
    internal class NativeData<T>
    {
        private T _data;
        private bool _setted;

        internal NativeData(T data)
        {
            _data = data;
        }

        internal T Data
        {
            get { return _data; }
            set
            {
                _setted = true;
                _data = value;
            }
        }

        internal bool Setted
        {
            get { return _setted; }
        }
    }
}
